FROM jdk:17
MAINTAINER xiamu "cnxiahuajie@icloud.com"
WORKDIR /usr/share/consul_demo
ADD ConsulDemo-0.0.1-SNAPSHOT.jar /usr/share/consul_demo/
EXPOSE 8080
ENV CONSUL_HOST=localhost
ENV CONSUL_PORT=8500
CMD ["java", "-jar", "/usr/share/consul_demo/ConsulDemo-0.0.1-SNAPSHOT.jar"]
